export interface loginFormData {
  username: string
  password: string
}

export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

// 登录接口ts类型，继承ResponseData
export interface loginResponseData extends ResponseData {
  data: string
}

export interface UserInfoData {
  avatar: string
  name: string
  roles: string[]
  buttons: string[]
  routes: string[]
}

export interface UserInfoReponseData extends ResponseData {
  data: UserInfoData
}
